﻿using Microsoft.Extensions.Configuration;

namespace YiShop.Framework.Config
{
    public static class AppSettings
    {
        public static UserConfig UserConfig { get; set; } = new ();
        public static JWTSettingsOptions JWTSettings { get; set; } = new ();

        public static void Init(IConfiguration configuration)
        {
            configuration.Bind("UserConfig", UserConfig);            
            configuration.Bind("JWTSettings", JWTSettings);
        }
    }
}
